package org.dromara.wms.domain;

import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;

import java.io.Serial;

/**
 * 出入库记录对象 wms_stock_log
 *
 * @author wenrui Su
 * @date 2024-03-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("wms_stock_log")
public class WmsStockLog extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 事务ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 物品id
     */
    private Long productId;

    /**
     * 单位
     */
    private String measureUnit;

    /**
     * 批次号
     */
    private String batchCode;

    /**
     * 单据号
     */
    private Long orderId;

    /**
     * 单价
     */
    private Long price;

    /**
     * 仓库ID
     */
    private Long warehouseId;

    /**
     * 库位ID
     */
    private Long areaId;

    /**
     * 操作前
     */
    private BigDecimal quantityBefore;

    /**
     * 操作数量
     */
    private BigDecimal quantity;

    /**
     * 备注
     */
    private String remark;


}
